package org.richin.collection.util;

import java.util.Iterator;

/**
 * Empty iterable that is used for <code>null</code> Lists.
 *
 * @param <T> the type over which to iterate.
 *
 * @author Copyright &copy; 2008
 * <a href="mailto:javelotinfo@users.sourceforge.net">Frederic Daoud</a>
 */
public class EmptyIterable<T> implements Iterable<T>
{
    /**
     * Returns an instance of {@link EmptyIterator}.
     */
    public Iterator<T> iterator()
    {
        return new EmptyIterator<T>();
    }
}

